package com.example.critic;

public class CriticismEngineImpl implements CriticismEngine{

    private String[] criticPool;

    public void setCriticPool(String[] criticPool) {
        this.criticPool = criticPool;
    }

    @Override
    public String getCriticism() {
        int i = (int) (Math.random()*criticPool.length);
        return criticPool[i];
    }
}
